package com.yy.wrapper;

/**
 * chapter13  com.yy.wrapper
 * 2023-05-08 16:02
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/5/8 16:02
 */
public class WrapperExercise01 {
    public static void main(String[] args) {
        Double d = 100d;//ok, 自动装箱 Double.valueOf(100d);
        Float f =1.5f;////ok, 自动装箱 Float.valueOf(1.5f);

        Object obj1 = true? new Integer(1) : new Double(2.8);//三元运算符
        System.out.println(obj1);//什么? 1.0

        Object obj2;
        if(true)
            obj2 = new Integer(1);
        else
            obj2 = new Double(2.0);
        System.out.println(obj2);//1
    }
}
